<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form id="maintenanceForm">
	<div class="easyui-panel" style="width: 100%; border: none; margin-top: 30px; overflow: visible;">
		<div style="width: 48%; float: left; margin-left: 25px;">
			<input type="hidden" name="id" value="${wmr.id}">
			
			<div style="width: 100%;" class="form-item">
				<label for="empname">员工姓名</label> 
				<select id="name" class="easyui-combobox" style="width: 200px;" name="emp" data-options="editable:false,value:'${wmr.emp.id}',required:true,panelHeight:'auto'">
					<c:forEach items="${emp}" var="emp">
						<option value="${emp.tb_emp_id}">${emp.emp_name}</option>
					</c:forEach>
				</select>
			</div>
			
			<div style="width: 100%;" class="form-item">
				<label for="name">学员姓名</label> <select id="name" class="easyui-combobox" style="width:200px;" name="student" data-options="editable:false,required:true">
					<c:forEach items="${student}" var="stu">
						<option value="${stu.tb_student_id}" ${stu.student_name == wmr.student['name'] ? 'selected' :''}>${stu.student_name}</option>
					</c:forEach>
				</select>
			</div>

			
			<div class="form-item required1" data-options="editable:false,required:true">
				<label for="mode">维护方式</label> 
					<select id="mode" class="easyui-combobox" style="width: 200px;" data-options="required:true,editable:false,panelHeight:'auto'" name="whmode">
						<option>${wmr.whmode}</option>
						<option>电话</option>
						<option>QQ</option>
						<option>邮件</option>
						<option>面谈</option>
						<option>微信</option>
						<option>短信</option>
					</select>
			</div>

			<div style="width: 100%;" class="form-item">
				<label for="time" class="label-top">维护时间</label> 
				<input id="time" class="easyui-datebox" style="width: 200px;" value="${wmr.whdate}" data-options="required:true,editable:false,showSeconds:false" name="whdate">
			</div>
		</div>

		<div style="width: 48%; float: left;">
			<div style="width: 100%;" class="form-item">
				<label for="nexttime" class="label-top">下次维护</label> 
				<input id="nexttime"  class="easyui-datebox" style="width: 200px;" value="${ wmr.nextDate}" data-options="editable:false,showSeconds:false"  name="nextDate">
			</div>


			<div style="width: 100%;" class="form-item ">
				<label for="content " class="label-top " style="position: relative; bottom: 55px;">维护内容</label>
				<textarea class="easyui-textbox" data-options="multiline:true,validType:'length[1,100]'" name="whcontent" cols="20 " rows="8" style="width:204px;height:130px;padding:5px">${wmr.whcontent }</textarea>
			
			</div>
		</div>
	</div>
</form>
